Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for tensor shape error in Federated_Pytorch_MNIST_Tutorial.ipynb #1095

Closed
wants to merge 1 commit into from

Conversation

tanwarsh
Copy link
Collaborator

Fixing error: "RuntimeError: The size of tensor a (32) must match the size of tensor b (10) at non-singleton dimension 1" in openfl-tutorials/Federated_Pytorch_MNIST_Tutorial.ipynb by changing the shape of validation label data.

Before:
Screenshot 2024-10-22 at 3 05 42 PM

After:
Screenshot 2024-10-22 at 2 36 13 PM

Screenshot 2024-10-22 at 3 21 57 PM

@tanwarsh tanwarsh changed the title fix for torch shape error Fix for tensor shape error in Federated_Pytorch_MNIST_Tutorial.ipynb Oct 22, 2024
Copy link
Collaborator

@teoparvanov teoparvanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for fixing this, @tanwarsh !

@tanwarsh
Copy link
Collaborator Author

Closing as this is resolved in #1010

@tanwarsh tanwarsh closed this Oct 23, 2024
@tanwarsh tanwarsh reopened this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants